package week8.thursday;

public class Bicycle extends Transport{
    private boolean isGear;

    public Bicycle(String name,int speed,boolean isGear){
        super(name,speed);
        this.isGear = isGear;
    }
    public Bicycle(){
    }
    @Override
    public void moveWay(){
        System.out.println(super.getName()+isGear+"齿轮");
    }
}
